package com.wwwarehouse.financialcenter.bean.bill;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @author Joseph on 2017/11/20.
 *         <p/>
 */

public class ChargingRecordBean implements Parcelable {

    /**
     * list : [{"chargeGeneratedTime":1510991427000,"chargeRecordUkid":625948222026395600,"chargeType":0,"chargeTypeDesc":"订购商品","otherSideId":10001234,"otherSideLogo":"http://www.baidu.com.201709892.png","otherSideName":"浙江网仓科技有限公司","periodType":0,"periodValue":5,"recordAmount":16000,"recordDetail":"10002 台式电脑 6台","recordPayType":1,"recordStatus":0,"recordStatusDesc":"未入账","relationBillUkid":625948222018007000,"relationContentUkid":222222222,"whichSide":"supply"},{"chargeGeneratedTime":1510991427000,"chargeRecordUkid":625948221518884900,"chargeType":0,"chargeTypeDesc":"订购商品","otherSideId":10001234,"otherSideLogo":"http://www.baidu.com.201709892.png","otherSideName":"浙江网仓科技有限公司","recordAmount":26000,"recordDetail":"10001 笔记本 6台","recordPayType":0,"recordStatus":1,"recordStatusDesc":"已入账","relationBillUkid":625948221502107600,"relationContentUkid":111111111,"whichSide":"demand"},{"chargeGeneratedTime":1510991427000,"chargeRecordUkid":625948221992841200,"chargeType":0,"chargeTypeDesc":"订购商品","otherSideId":10001234,"otherSideLogo":"http://www.baidu.com.201709892.png","otherSideName":"浙江网仓科技有限公司","periodType":0,"periodValue":5,"recordAmount":26000,"recordDetail":"10001 笔记本 6台","recordPayType":1,"recordStatus":0,"recordStatusDesc":"未入账","relationBillUkid":625948221963481100,"relationContentUkid":222222222,"whichSide":"demand"},{"chargeGeneratedTime":1510991427000,"chargeRecordUkid":625948221518884900,"chargeType":0,"chargeTypeDesc":"订购商品","otherSideId":10001234,"otherSideLogo":"http://www.baidu.com.201709892.png","otherSideName":"浙江网仓科技有限公司","periodType":0,"periodValue":5,"recordAmount":16000,"recordDetail":"10002 台式电脑 6台","recordPayType":0,"recordStatus":1,"recordStatusDesc":"已入账","relationBillUkid":625948221518884900,"relationContentUkid":111111111,"whichSide":"supply"}]
     * page : 1
     * size : 4
     * total : 4
     * 所有计费记录
     */

    private int page;
    private int size;
    private int total;
    private List<ListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable {
        /**
         * chargeGeneratedTime : 1510991427000
         * chargeRecordUkid : 625948222026395600
         * chargeType : 0
         * chargeTypeDesc : 订购商品
         * otherSideId : 10001234
         * otherSideLogo : http://www.baidu.com.201709892.png
         * otherSideName : 浙江网仓科技有限公司
         * periodType : 0
         * periodValue : 5
         * recordAmount : 16000
         * recordDetail : 10002 台式电脑 6台
         * recordPayType : 1
         * recordStatus : 0
         * recordStatusDesc : 未入账
         * relationBillUkid : 625948222018007000
         * relationContentUkid : 222222222
         * whichSide : supply
         */

        private String chargeGeneratedTime;
        private String chargeRecordUkid;
        private int chargeType;
        private String chargeTypeDesc;
        private String otherSideId;
        private String otherSideLogo;
        private String otherSideName;
        private String periodType;
        private String periodValue;
        private String recordAmount;
        private String recordDetail;
        private String recordPayType;
        private String recordPayTypeDesc;
        private String recordStatus;
        private String recordStatusDesc;
        private String relationBillUkid;
        private String relationContentUkid;
        private String whichSide;

        public String getRecordPayTypeDesc() {
            return recordPayTypeDesc;
        }

        public void setRecordPayTypeDesc(String recordPayTypeDesc) {
            this.recordPayTypeDesc = recordPayTypeDesc;
        }

        public String getChargeGeneratedTime() {
            return chargeGeneratedTime;
        }

        public void setChargeGeneratedTime(String chargeGeneratedTime) {
            this.chargeGeneratedTime = chargeGeneratedTime;
        }

        public String getChargeRecordUkid() {
            return chargeRecordUkid;
        }

        public void setChargeRecordUkid(String chargeRecordUkid) {
            this.chargeRecordUkid = chargeRecordUkid;
        }

        public int getChargeType() {
            return chargeType;
        }

        public void setChargeType(int chargeType) {
            this.chargeType = chargeType;
        }

        public String getChargeTypeDesc() {
            return chargeTypeDesc;
        }

        public void setChargeTypeDesc(String chargeTypeDesc) {
            this.chargeTypeDesc = chargeTypeDesc;
        }

        public String getOtherSideId() {
            return otherSideId;
        }

        public void setOtherSideId(String otherSideId) {
            this.otherSideId = otherSideId;
        }

        public String getOtherSideLogo() {
            return otherSideLogo;
        }

        public void setOtherSideLogo(String otherSideLogo) {
            this.otherSideLogo = otherSideLogo;
        }

        public String getOtherSideName() {
            return otherSideName;
        }

        public void setOtherSideName(String otherSideName) {
            this.otherSideName = otherSideName;
        }

        public String getPeriodType() {
            return periodType;
        }

        public void setPeriodType(String periodType) {
            this.periodType = periodType;
        }

        public String getPeriodValue() {
            return periodValue;
        }

        public void setPeriodValue(String periodValue) {
            this.periodValue = periodValue;
        }

        public String getRecordAmount() {
            return recordAmount;
        }

        public void setRecordAmount(String recordAmount) {
            this.recordAmount = recordAmount;
        }

        public String getRecordDetail() {
            return recordDetail;
        }

        public void setRecordDetail(String recordDetail) {
            this.recordDetail = recordDetail;
        }

        public String getRecordPayType() {
            return recordPayType;
        }

        public void setRecordPayType(String recordPayType) {
            this.recordPayType = recordPayType;
        }

        public String getRecordStatus() {
            return recordStatus;
        }

        public void setRecordStatus(String recordStatus) {
            this.recordStatus = recordStatus;
        }

        public String getRecordStatusDesc() {
            return recordStatusDesc;
        }

        public void setRecordStatusDesc(String recordStatusDesc) {
            this.recordStatusDesc = recordStatusDesc;
        }

        public String getRelationBillUkid() {
            return relationBillUkid;
        }

        public void setRelationBillUkid(String relationBillUkid) {
            this.relationBillUkid = relationBillUkid;
        }

        public String getRelationContentUkid() {
            return relationContentUkid;
        }

        public void setRelationContentUkid(String relationContentUkid) {
            this.relationContentUkid = relationContentUkid;
        }

        public String getWhichSide() {
            return whichSide;
        }

        public void setWhichSide(String whichSide) {
            this.whichSide = whichSide;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.chargeGeneratedTime);
            dest.writeString(this.chargeRecordUkid);
            dest.writeInt(this.chargeType);
            dest.writeString(this.chargeTypeDesc);
            dest.writeString(this.otherSideId);
            dest.writeString(this.otherSideLogo);
            dest.writeString(this.otherSideName);
            dest.writeString(this.periodType);
            dest.writeString(this.periodValue);
            dest.writeString(this.recordAmount);
            dest.writeString(this.recordDetail);
            dest.writeString(this.recordPayType);
            dest.writeString(this.recordPayTypeDesc);
            dest.writeString(this.recordStatus);
            dest.writeString(this.recordStatusDesc);
            dest.writeString(this.relationBillUkid);
            dest.writeString(this.relationContentUkid);
            dest.writeString(this.whichSide);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.chargeGeneratedTime = in.readString();
            this.chargeRecordUkid = in.readString();
            this.chargeType = in.readInt();
            this.chargeTypeDesc = in.readString();
            this.otherSideId = in.readString();
            this.otherSideLogo = in.readString();
            this.otherSideName = in.readString();
            this.periodType = in.readString();
            this.periodValue = in.readString();
            this.recordAmount = in.readString();
            this.recordDetail = in.readString();
            this.recordPayType = in.readString();
            this.recordPayTypeDesc = in.readString();
            this.recordStatus = in.readString();
            this.recordStatusDesc = in.readString();
            this.relationBillUkid = in.readString();
            this.relationContentUkid = in.readString();
            this.whichSide = in.readString();
        }

        public static final Parcelable.Creator<ListBean> CREATOR = new Parcelable.Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeTypedList(this.list);
    }

    public ChargingRecordBean() {
    }

    protected ChargingRecordBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Parcelable.Creator<ChargingRecordBean> CREATOR = new Parcelable.Creator<ChargingRecordBean>() {
        @Override
        public ChargingRecordBean createFromParcel(Parcel source) {
            return new ChargingRecordBean(source);
        }

        @Override
        public ChargingRecordBean[] newArray(int size) {
            return new ChargingRecordBean[size];
        }
    };
}
